﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 流程活动
    /// </summary>
    [Serializable]
    public class wf_action
    {
        #region 数据表名称
        public static readonly string TableName = "wf_action";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// ID
            /// </summary>
            public static readonly string act_id = @"act_id";

            /// <summary>
            /// 所属流程节点ID
            /// </summary>
            public static readonly string node_id = @"node_id";

            /// <summary>
            /// 执行步骤索引
            /// </summary>
            public static readonly string act_idx = @"act_idx";

            /// <summary>
            /// 执行活动标题
            /// </summary>
            public static readonly string act_title = @"act_title";

            /// <summary>
            /// 执行人ID
            /// </summary>
            public static readonly string act_user_id = @"act_user_id";

            /// <summary>
            /// 执行人姓名
            /// </summary>
            public static readonly string act_user_name = @"act_user_name";

            /// <summary>
            /// 审批类型ID
            /// </summary>
            public static readonly string n_type_id = @"n_type_id";

            /// <summary>
            /// 流程活动执行标志：0：未启动；1：已启动但未执行；99：已启动且已执行；
            /// </summary>
            public static readonly string act_do_flag = @"act_do_flag";

            /// <summary>
            /// 执行结果标志：0：未执行；1；执行通过；-1；执行不通过；
            /// </summary>
            public static readonly string act_result_flag = @"act_result_flag";

            /// <summary>
            /// 执行结果
            /// </summary>
            public static readonly string act_result = @"act_result";

            /// <summary>
            /// 执行结果描述
            /// </summary>
            public static readonly string act_result_describe = @"act_result_describe";

            /// <summary>
            /// 执行时间
            /// </summary>
            public static readonly string act_date = @"act_date";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";


            /// <summary>
            /// 用户所属部门ID
            /// </summary>
            public static readonly string dept_id = @"dept_id";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string act_id { get; set; }

        /// <summary>
        /// 所属流程节点
        /// </summary>
        public virtual wf_node node { get; set; }

        /// <summary>
        /// 执行步骤索引
        /// </summary>
        public virtual int act_idx { get; set; }

        /// <summary>
        /// 执行活动标题
        /// </summary>
        public virtual string act_title { get; set; }

        /// <summary>
        /// 执行人
        /// </summary>
        public virtual t_sys_user act_user { get; set; }

        /// <summary>
        /// 执行人姓名
        /// </summary>
        public virtual string act_user_name { get; set; }

        /// <summary>
        /// 流程活动执行标志：0：未启动；1：已启动但未执行；99：已启动且已执行；
        /// </summary>
        public virtual int act_do_flag { get; set; }

        /// <summary>
        /// 执行结果标志：0：未执行；1；执行通过；-1；执行不通过；
        /// </summary>
        public virtual int act_result_flag { get; set; }

        /// <summary>
        /// 执行结果
        /// </summary>
        public virtual string act_result { get; set; }

        /// <summary>
        /// 执行结果描述
        /// </summary>
        public virtual string act_result_describe { get; set; }

        /// <summary>
        /// 执行时间
        /// </summary>
        public virtual DateTime act_date { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion

        public wf_action()
        {
            act_user = new t_sys_user();
            node = new wf_node();
        }
    }
}
